package cn.edu.fjzzit.web.myhotel.mapper;

import cn.edu.fjzzit.web.myhotel.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserInfoMapper {
    int insert(UserInfo record);
    UserInfo findFirstByUserName(@Param("userName")String userName);
    int remove(@Param("userName")String userName);
    int updatePasswordByUserName(@Param("password") String password,@Param("userName") String userName);

    int updateUserPasswordByUserID(@Param("userID")int userID,@Param("password")String password, String salt);
}